package org.hard.design.mode.type.creation.factory;

/**
 *
 * @author ASUS
 */
public interface NumberFactory {

    NumberFactory impl = new NumberFactoryImpl();

    /**
     *
     * @param s
     * @return
     */
    Number parse(String s);
    // 获取工厂实例:

    static NumberFactory getFactory() {
        return impl;
    }
}
